/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Nurhat Uca
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import org.orm.*;

public class T_test_log_details {
    public T_test_log_details() {
    }

    public boolean save() throws PersistentException {
	try {
	    org.testis.orm.manager.TestisDbPersistentManager.instance()
		    .saveObject(this);
	    return true;
	} catch (Exception e) {
	    e.printStackTrace();
	    throw new PersistentException(e);
	}
    }

    public boolean delete() throws PersistentException {
	try {
	    org.testis.orm.manager.TestisDbPersistentManager.instance()
		    .deleteObject(this);
	    return true;
	} catch (Exception e) {
	    e.printStackTrace();
	    throw new PersistentException(e);
	}
    }

    public boolean refresh() throws PersistentException {
	try {
	    org.testis.orm.manager.TestisDbPersistentManager.instance()
		    .getSession().refresh(this);
	    return true;
	} catch (Exception e) {
	    e.printStackTrace();
	    throw new PersistentException(e);
	}
    }

    public boolean evict() throws PersistentException {
	try {
	    org.testis.orm.manager.TestisDbPersistentManager.instance()
		    .getSession().evict(this);
	    return true;
	} catch (Exception e) {
	    e.printStackTrace();
	    throw new PersistentException(e);
	}
    }

    private int id;

    private String guid;

    private String message;

    private String logLevel;

    private String logClass;

    private String dateExecuted;

    private String objectDescription;

    private void setId(int value) {
	this.id = value;
    }

    public int getId() {
	return id;
    }

    public int getORMID() {
	return getId();
    }

    public void setGuid(String value) {
	this.guid = value;
    }

    public String getGuid() {
	return guid;
    }

    public void setMessage(String value) {
	this.message = value;
    }

    public String getMessage() {
	return message;
    }

    public void setLogLevel(String value) {
	this.logLevel = value;
    }

    public String getLogLevel() {
	return logLevel;
    }

    public void setLogClass(String value) {
	this.logClass = value;
    }

    public String getLogClass() {
	return logClass;
    }

    public void setDateExecuted(String value) {
	this.dateExecuted = value;
    }

    public String getDateExecuted() {
	return dateExecuted;
    }

    public void setObjectDescription(String value) {
	this.objectDescription = value;
    }

    public String getObjectDescription() {
	return objectDescription;
    }

    public String toString() {
	return toString(false);
    }

    public String toString(boolean idOnly) {
	if (idOnly) {
	    return String.valueOf(getId());
	} else {
	    StringBuffer sb = new StringBuffer();
	    sb.append("T_test_log_details[ ");
	    sb.append("Id=").append(getId()).append(" ");
	    sb.append("Guid=").append(getGuid()).append(" ");
	    sb.append("Message=").append(getMessage()).append(" ");
	    sb.append("LogLevel=").append(getLogLevel()).append(" ");
	    sb.append("LogClass=").append(getLogClass()).append(" ");
	    sb.append("DateExecuted=").append(getDateExecuted()).append(" ");
	    sb.append("ObjectDescription=").append(getObjectDescription())
		    .append(" ");
	    sb.append("]");
	    return sb.toString();
	}
    }

}
